<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p4_CSS元素显示模式</title>
    <style>
        div{
            width: 200px;
            height: 100px;
            border: 5px solid #f00;
            /*块级元素 允许设置宽高 竖着排*/
            display: block;
        }
        span{
            background-color: yellow;
            display: inline;
            display: block;
            width: 200px;
            height: 200px;

        }
        input,button{
            width: 200px;
            height: 200px;
            display: inline-block;/*行内快 既横着排 又可以设置宽高*/
        }
        .d2{
            display: none;
        }
    </style>
</head>
<body>
<div class="d1">111</div>
<div class="d2">222</div>
<div class="d3">333</div>
<hr>
<span>654633464</span>
<hr>
<input type="text">
<input type="text">
<input type="text">
<button>按钮</button>
</body>
</html>